<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<button type="button" @click="list[0] = 8">改变</button>
			<p v-for="(item,index) in list">{{item}}</p>
		</div>
		<script>
			const vm = new Vue({
				el:"#app",
				data(){
					return {
						list:[
							1,2,3
						]
					}
				},
				mounted(){
					console.log(123)
				}
			})
		</script>
	</body>
</html>
